﻿using System;
using System.Collections.Generic;
using System.Text;
using VoteServices.VoteClass;

namespace VoteServices
{
    /// <summary>
    /// 数据
    /// </summary>
    public class VoteData
    {

        public static List<User> users = new List<User>
            {
                new User
                {
                    Id=100,
                    Account="123456",
                    Password="123456",
                    Name="zhan"

                }
            };
        public static List<Problem> problems = new List<Problem>
            {
                new Problem()
                {
                    Id=100000,
                    Detail="1+1=?",
                    CreationTime=DateTime.Parse("2009-10-01 07:52 PM"),
                    OverdueTime=DateTime.Parse("2020-10-01 07:52 PM"),

                },
                new Problem()
                {
                    Id=100100,
                    Detail="2+2=?",
                    CreationTime=DateTime.Parse("2010-10-01 07:52 PM"),
                    OverdueTime=DateTime.Parse("2019-10-01 07:52 PM"),
                },
            };
        public static List<Option> options = new List<Option>
            {
                new Option
                {
                    Id=100001,
                    ProblemId=100000,
                    Detail="1",
                    Votes=0
                },
                new Option
                {
                    Id=100002,
                    ProblemId=100000,
                    Detail="2",
                    Votes=0
                },
                new Option
                {
                    Id=100003,
                    ProblemId=100000,
                    Detail="2",
                    Votes=0
                },
                new Option
                {
                    Id=100101,
                    ProblemId=100100,
                    Detail="0",
                    Votes=0

                },
                new Option
                {
                    Id=100102,
                    ProblemId=100100,
                    Detail="2",
                    Votes=0

                },
                new Option
                {
                    Id=100103,
                    ProblemId=100100,
                    Detail="4",
                    Votes=0

                }

            };
        public static List<Record> records = new List<Record>();


    }
}
